package com.gw.detail.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gw.detail.domain.Innen;
import com.gw.detail.mapper.InnenMapper;
import com.gw.detail.service.IInnenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 车辆内部零部件损坏Service业务层处理
 *
 * @author WangBin
 * @date 2021-04-30
 */
@Service
public class InnenServiceImpl extends ServiceImpl<InnenMapper,Innen> implements IInnenService {
    @Autowired
    private InnenMapper innenMapper;

    /**
     * 查询车辆内部零部件损坏
     *
     * @param id 车辆内部零部件损坏ID
     * @return 车辆内部零部件损坏
     */
    @Override
    public Innen selectInnenById(Long id) {
        return innenMapper.selectInnenById(id);
    }

    /**
     * 查询车辆内部零部件损坏列表
     *
     * @param innen 车辆内部零部件损坏
     * @return 车辆内部零部件损坏
     */
    @Override
    public List<Innen> selectInnenList(Innen innen) {
        return innenMapper.selectInnenList(innen);
    }

    /**
     * 新增车辆内部零部件损坏
     *
     * @param innen 车辆内部零部件损坏
     * @return 结果
     */
    @Override
    public int insertInnen(Innen innen) {
        return innenMapper.insertInnen(innen);
    }

    /**
     * 修改车辆内部零部件损坏
     *
     * @param innen 车辆内部零部件损坏
     * @return 结果
     */
    @Override
    public int updateInnen(Innen innen) {
        return innenMapper.updateInnen(innen);
    }

    /**
     * 批量删除车辆内部零部件损坏
     *
     * @param ids 需要删除的车辆内部零部件损坏ID
     * @return 结果
     */
    @Override
    public int deleteInnenByIds(Long[] ids) {
        return innenMapper.deleteInnenByIds(ids);
    }

    /**
     * 删除车辆内部零部件损坏信息
     *
     * @param id 车辆内部零部件损坏ID
     * @return 结果
     */
    @Override
    public int deleteInnenById(Long id) {
        return innenMapper.deleteInnenById(id);
    }
}
